<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>Title</title>
    <script src="../jquery/jquery-3.2.1.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../css/bootstrap.css">
</head>
<body>

<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="panel-title">
                <h3 class="text-center">编辑图书</h3>
            </div>
        </div>

        <div class="modal-body">
            <form action="admin/editFood" method="post" enctype="multipart/form-data" id="add_food_form_1" class="form-horizontal text-center">
                <input type="hidden" name="food.foodId" value="${food.foodId }"/>
                <div class="form-group">
                    <label class="col-lg-2">图书书名:</label>
                    <div class="col-lg-8">
                        <input type="text" name="food.foodName" value="${food.foodName }" class="form-control"/>
                    </div>

                </div>
                <div class="form-group">
                    <label class="col-lg-2">图书类别:</label>
                    <div class="col-lg-8">
                        <select name="foodTypeId" class="form-control">
                            <s:iterator id="var_food_type" value="#session.foodTypeList">
                                <option value="${var_food_type.foodTypeId }">${var_food_type.foodTypeName }</option>
                            </s:iterator>
                        </select>
                    </div>

                </div>
                <div class="form-group">
                    <label class="col-lg-2">摘要:</label>
                    <div class="col-lg-8">
                        <input type="text" name="food.foodSummary" value="${food.foodSummary }" class="form-control"/>
                    </div>

                </div>
                <div class="form-group">
                    <label class="col-lg-2">介绍:</label>
                    <div class="col-lg-8">
                        <input type="text" name="food.foodPrice" value="${food.foodPrice }" class="form-control"/>
                    </div>

                </div>
                <div class="form-group">
                    <label class="col-lg-2">图片:</label>
                    <div class="col-lg-8">
                        <input type="text" name="food.foodPrice" value="${food.foodPrice }" class="form-control"/>
                    </div>

                </div>
                <div class="form-group">
                    <label class="col-lg-2">图片:</label>
                    <div class="col-lg-8">
                        <input type="file" name="doc" class="form-control"/>
                    </div>

                </div>

                <button type="submit" class="btn btn-primary center-block">
                    <span class="glyphicon glyphicon-wrench">修改</span>
                </button>

            </form>
        </div>

    </div>

</div>
</body>
</html>